<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<div id="cc" class="easyui-layout" data-options="fit:true" >   
    <div id="re_handle" align="center" data-options="region:'east',iconCls:'icon-help',title:'最新处理问题通告',split:false" style="width:50%;">
    	<h2>发布日期：</h2><h2><div></div></h2><br/> 
   	  		<span></span> 
    </div>   
    <div id="re_order" align="center" data-options="region:'west',iconCls:'icon-lorry',title:'最新物流订单通告',split:false" style="width:50%;">
    	<h2>发布日期：</h2><h2><div></div></h2><br/> 
   	  		<span></span>
    </div>   
</div> 

   

<!--     <div data-options="region:'center',title:'最新问题处理通告'">
    
<!--     </div> -->
<!-- 	<div id="re_order" class="easyui-panel" title="最新物流订单通告"      -->
<!--         style="height:300px;padding:10px;background:#fafafa;"    -->
<!--         data-options="iconCls:'icon-lorry',closable:true,     -->
<!--                 collapsible:true">    -->
<!--   	  	<marquee direction=up  scrollAmount=1 > -->
<!--   	  		<div>发布日期：</div><br/> -->
<!--   	  		<span></span> -->
<!--   	  	</marquee> -->
<!-- 	</div>   -->
<!-- 	<div id="re_handle" class="easyui-panel" title="最新处理问题通告"      -->
<!--         style="height:250px;padding:10px;background:#fafafa;"    -->
<!--         data-options="iconCls:'icon-help',closable:true,     -->
<!--                 collapsible:true,fit:true">  -->
<!--         <marquee direction=up  scrollAmount=1 >   -->
<!--       		<div>发布日期：</div><br/> -->
<!--       		<span></span> -->
<!--       	</marquee> -->
<!-- 	</div>   -->
<!-- </div>   -->
<script>
$(function(){
	refreshAnnoun();
});
function refreshAnnoun(){
	$.ajax({
		url : "announce/getAllInfo.do",
		dataType : "json",
		type : "post",
		success : function(data) {
			//alert(data);
			if(data[0]!=undefined && data[0].type==0){
				var myDate=new Date(data[0].edit_tm);
	    		var newDate = myDate.toLocaleDateString();//.replace(/(\d+)[^\d](\d+)[^\d](\d+)[^\d]/, "$1-$2-$3");
	    		$("#re_order div").empty();
	    		$("#re_order div").append(newDate);
	    		$("#re_order span").empty();
				$("#re_order span").append(data[0].content);
			}
			
			if(data[1]!=undefined && data[1].type==1){
				var myDate=new Date(data[1].edit_tm);
				var newDate = myDate.toLocaleDateString();//.replace(/(\d+)[^\d](\d+)[^\d](\d+)[^\d]/, "$1-$2-$3");
				$("#re_handle div").empty();
				$("#re_handle div").append(newDate)
				$("#re_handle span").empty();
				$("#re_handle span").append(data[1].content);
			}
		}
	})
	setTimeout("refreshAnnoun()",1000*60*2);  
}
	//refreshAnnoun();
	
</script>
   